package info.pixstone.foodhunter.apps.activity;

import info.pixstone.foodhunter.apps.R;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.content.Intent;
public class SystemSetting extends PreferenceActivity {
	private ImageButton SeachButton=null;
	private ImageButton HomeButton=null;
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.systemsetting);
	 SeachButton=(ImageButton)findViewById(R.id.searchButton);
     SeachButton.setOnClickListener((OnClickListener) new SearchButtonListener());
     HomeButton=(ImageButton)findViewById(R.id.turntomap);
     HomeButton.setOnClickListener((OnClickListener) new HomeButtonListener());
}

class HomeButtonListener implements OnClickListener{
	public void onClick(View v){
		Intent intent=new Intent();
		intent.setClass(SystemSetting.this, MainActivity.class);
		SystemSetting.this.startActivity(intent);
		}
}

class SearchButtonListener implements OnClickListener{
	public void onClick(View v){
		Intent intent=new Intent();
		intent.setClass(SystemSetting.this, MainActivity.class);
		SystemSetting.this.startActivity(intent);
	
	
}
}

}